package com.zhaotianhao.serviceproduct.api;

import com.zhaotianhao.serviceproduct.dto.SkuStockDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author Z-7
 * @Date 2022/4/28
 */
@Component
@FeignClient(name = "SERVICE-STOCK",path = "/skuStock")
public interface SkuStockApi {
    @GetMapping("/getStockBySkuId")
    public SkuStockDto getStockBySkuId(@RequestParam Long skuId);
}
